package com.zksk.admin.domain.member.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @description:
 * @author: xiebo
 * @create: 2022-12-27 15:05
 **/
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "DistributionDto", description = "分配营销人员传参")
public class DistributionDto
{

    @ApiModelProperty("企业ID集合")
    @NotNull(message = "未选择企业!",groups = Update.class)
    private List<Long> ids;

    @ApiModelProperty("营销人员ID")
    @NotNull(message = "未选择营销人员!",groups = Update.class)
    private Long saleUser;

    @ApiModelProperty("营销人员名称,对应系统用户表nickName")
    @NotNull(message = "营销人员名称未传!",groups = Update.class)
    private String saleUsername;
}
